package com.learn.design.lsp.v3;

import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Client {
    public static void invoker() {
        //父类存在的地方，子类就应该能够存在
//        Father f = new Father();
//        Map<String, String> map = new HashMap<>();
//        f.doSomething(map);

        Son son = new Son();
        Map<String, String> map = new HashMap<>();
        Collection list = son.doSomething(map);
    }

    public static void main(String[] args) {
        invoker();
    }
}
